﻿@model ManufacturerNavigationModel
@using Nop.Web.Models.Catalog;
@if (Model.Manufacturers.Count > 0)
{
    <nav class="sidebar light">
        <ul>
            <li class="title">@T("Manufacturers")</li>
            <li class="stick">
                <a class="dropdown-toggle" href="#"><i class="icon-tree-view"></i>Manufacturers</a>
                <ul class="dropdown-menu" data-role="dropdown">
                    @foreach (var manufacturer in Model.Manufacturers)
                    {
                        <li class="@(manufacturer.IsActive ? "active" : "inactive")">
                            <a href="@Url.RouteUrl("Manufacturer", new { SeName = manufacturer.SeName })">@manufacturer.Name</a>
                        </li>
                    }
                </ul>
                @if (Model.TotalManufacturers > Model.Manufacturers.Count)
                {
                    <div class="view-all">
                        <a href="@Url.RouteUrl("ManufacturerList")">@T("Manufacturers.ViewAll")</a>
                    </div>
                }
            </li>
        </ul>
    </nav>
}